package com.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.gulimall.product.entity.AttrGroupEntity;
import com.gulimall.product.vo.AttrGroupRelationVO;
import com.gulimall.product.vo.AttrGroupWithAttrsVO;
import com.gulimall.product.vo.SpuItemAttrGroupVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author Ren
 * @email jackren546@gmail.com
 * @date 2024-12-31 13:14:01
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void deleteRelation(AttrGroupRelationVO[] attrGroupRelationVos);

    PageUtils getNoRelation(Map<String, Object> params, Long attrgtoupId);

    List<AttrGroupWithAttrsVO> getAttrGroupWithAttrs(Long catelogId);

    List<SpuItemAttrGroupVO> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

